package com.hnd.test.service;

public class Dog {
    private String name;
    private Home home;

    public Dog(String name) {
        this.name = name;
    }

    public Dog(String name, Home home) {
        this.name = name;
        this.home = home;
    }

    public Dog() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Home getHome() {
        return home;
    }

    public void setHome(Home home) {
        this.home = home;
    }

    public void say() {
        System.out.println(" dog is saying " + this.name);
    }
}
